package com.Filter;

import javax.servlet.*;
import java.io.IOException;

public class hello implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

        System.out.println("filter被初始化");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("hello filter");
    }

    @Override
    public void destroy() {

        System.out.println("filter被销毁");
    }
}
